<template>
  <div @androidback="back">
    <router-view style="flex:1"></router-view>
    <Tip ref="tip"></Tip>
  </div>
</template>

<script>
import TipComponent from './components/ui/tip.vue'
import { Tip } from './util'
export default {
  components: {
    'Tip': TipComponent
  },
  methods: {
    back: function () {
      this.$router.back()
    }
  },
  mounted (){
    Tip.register(this.$refs.tip)
  }
}
</script>